// app.js
App({
  onLaunch() {
    console.log('App-onLaunch')
  },
  onShow() {
    console.log('App-onShow')
  },
  onHide() {
    console.log('App-onHide')
  },
  onError() {
    console.log('App-onError')
  },
  globalData: {
    userInfo: null,
    isLoading: false
  },
  // 自定义方法
  showMsg() {
    console.log('Hi,今天天气不错，来约会吗？')
  }
})
